<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
    <script type="text/javascript ">
   arr = [10,15,12,32,35,25,26,72,48,80,18];
    function  dd(arr) {
      for (var i = 0;i < arr.length;  i++) {
      for (var x = 0; x < arr.length; x++){
           if(arr[x]<arr[x+1]){
           		temp = arr[x];
           		arr[x] = arr[x+1];
           		arr[x+1] =temp;

             }
           };

        };
     return arr;
      }
  var res = dd(arr);
  document.write(res);
    	
    </script>
<body>
	
</body>
</html>